package com.sanyang.lawyer.service.finance;

import com.sanyang.lawyer.entity.Case_law;
import com.sanyang.lawyer.entity.Finance_pay;
import com.sanyang.lawyer.entity.Finance_payout;
import com.sanyang.lawyer.entity.Finance_payout_type;
import com.sanyang.lawyer.mapper.finance.Finance_payoutMappper;
import com.sanyang.lawyer.mapper.finance.Finance_payout_typeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: lawyer
 * @description: 个人支出
 * @author: lql
 * @create: 2019-10-12 10:20
 **/
@Service
public class Finance_payoutService {
        @Autowired
        private Finance_payoutMappper finance_payoutMappper;

            public List<Finance_payout> list(Map<String,String> map){
                List<Finance_payout> list=finance_payoutMappper.list(map);
                return list;
            }

            public int  add(Map<String,String> map){
                return finance_payoutMappper.add(map);
            }

            public int delete(int payoutId){
                return finance_payoutMappper.delete(payoutId);
            }
    //财务统计
    public List<Map<String,Object>> Statistics(Map map){
                return finance_payoutMappper.Statistics(map);
    }
    //收纳统计
    public List<Map<String,Object>> cashierStatistics(Map map){
        return finance_payoutMappper.cashierStatistics(map);
    }
}
